36. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2023-07-12 04:42:37 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

36.1 Files compared

#LocationFileLast Modified
1Porto v4.0.5/Theme Files/Porto Theme/app/code/Mageplaza/LayeredNavigation/SetupUpgradeData.php2022-12-08 01:34:28 +0000
22023-07-12 04:42:37 +0000

36.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged00
Changed00
Inserted00
Removed178

36.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

36.4 Active regular expressions

No regular expressions were active.

36.5 Comparison detail

1 <?php    
2 /**    
3  * Mageplaza    
4  *    
5  * NOTICE OF LICENSE    
6  *    
7  * This source file is subject to the Mageplaza.com license that is    
8  * available through the world-wide-web at this URL:    
9  * https://www.mageplaza.com/LICENSE.txt    
10  *    
11  * DISCLAIMER    
12  *    
13  * Do not edit or add to this file if you wish to upgrade this extension to newer    
14  * version in the future.    
15  *    
16  * @category    Mageplaza    
17  * @package     Mageplaza_LayeredNavigation    
18  * @copyright   Copyright (c) Mageplaza (http://www.mageplaza.com/)    
19  * @license     https://www.mageplaza.com/LICENSE.txt    
20  */    
21 namespace Mageplaza\LayeredNavigation\Setup;    
22     
23 use Magento\Catalog\Model\Category;    
24 use Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface;    
25 use Magento\Eav\Setup\EavSetupFactory;    
26 use Magento\Framework\Setup\UpgradeDataInterface;    
27 use Magento\Framework\Setup\ModuleContextInterface;    
28 use Magento\Framework\Setup\ModuleDataSetupInterface;    
29 use Mageplaza\LayeredNavigation\Model\Category\Attribute\Backend\Attributes;    
30 use Mageplaza\LayeredNavigation\Model\Category\Attribute\Source\Attributes as SourceAttributes;    
31     
32 /**    
33  * Class UpgradeData    
34  * @package Mageplaza\LayeredNavigation\Setup    
35  */    
36 class UpgradeData implements UpgradeDataInterface    
37 {    
38     /**    
39      * @var EavSetupFactory    
40      */    
41     protected $eavSetupFactory;    
42     
43     /**    
44      * UpgradeData constructor.    
45      * @param EavSetupFactory $eavSetupFactory    
46      */    
47     public function __construct(    
48         EavSetupFactory $eavSetupFactory    
49     ) {    
50         $this->eavSetupFactory = $eavSetupFactory;    
51     }    
52     
53     /**    
54      * @param ModuleDataSetupInterface $setup    
55      * @param ModuleContextInterface $context    
56      */    
57     public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context)    
58     {    
59         if (version_compare($context->getVersion(), '2.0.1', '<')) {    
60             $setup->startSetup();    
61             $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);    
62     
63             $eavSetup->addAttribute(Category::ENTITY, 'mp_ln_hide_attribute_ids', [    
64                 'type'       => 'text',    
65                 'label'      => 'Hide Filter Attributes on Layered Navigation',    
66                 'input'      => 'multiselect',    
67                 'source'     => SourceAttributes::class,    
68                 'backend'    => Attributes::class,    
69                 'required'   => false,    
70                 'sort_order' => 100,    
71                 'global'     => ScopedAttributeInterface::SCOPE_STORE,    
72                 'group'      => 'Display Settings',    
73             ]);    
74     
75             $setup->endSetup();    
76         }    
77     }    
78 }